<div class="modal-header">
    <h3 class="modal-title">投票详情</h3>
</div>
<div class="modal-body">
    <form class="form-horizontal">
        <div class="form-group">
            <label for="title" class="col-sm-2 control-label">投票标题</label>
            <div class="col-sm-8" style="padding-top: 7px;">
                <span id="title" ng-bind="vote.title"></span>
            </div>
        </div>
        <div class="form-group">
            <label for="description" class="col-sm-2 control-label">投票详情</label>
            <div class="col-sm-8" style="padding-top: 7px;">
                <span id="description" ng-bind="vote.description"></span>
            </div>
        </div>
        <div ng-repeat="question in vote.questions track by $index">
            <div class="form-group">
                <label class="col-sm-2 control-label" ng-bind="'问题'+($index+1)"></label>
                <div class="col-sm-8" style="padding-top: 7px;">
                    <span ng-bind="question.title"></span>
                </div>
            </div>
            <div class="form-group" ng-repeat="option in question.options track by $index">
                <label class="col-sm-2 control-label" ng-bind="($index+1)"></label>
                <div class="col-sm-8" style="padding-top: 7px;">
                    <span ng-bind="option.title"></span>
                </div>
                <div class="col-sm-2" style="margin-top: 5px;">
                    <span ng-bind="option.percentage"></span>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-warning" type="button" ng-click="cancel()">关闭</button>
</div>